package com.example.demo.dao.mapper;

import com.example.demo.bean.SysPermission;
import com.example.demo.bean.SysRole;
import com.example.demo.dao.IBaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * a
 *
 */
public interface SysRoleMapper extends IBaseMapper<SysRole> {
    /**
     * 根据角色获取对应的权限
     * @param role
     * @return
     */
    List<SysPermission> getPermission(@Param("role") String role);
}